Skip to content

[ISSUE #10373] Fix quarantined flaky tests and remove CI rerun workflow#10379

Merged
lollipopjin merged 1 commit into
apache:developfrom
lizhimins:fix/flaky-tests-10373
May 26, 2026
Merged

[ISSUE #10373] Fix quarantined flaky tests and remove CI rerun workflow#10379
lollipopjin merged 1 commit into
apache:developfrom
lizhimins:fix/flaky-tests-10373

Conversation

@lizhimins
Copy link
Copy Markdown
Member

@lizhimins lizhimins commented May 26, 2026

Summary

Changes

Test Root Cause Fix
BloomFilterTest#testCheckFalseHit new Random(System.nanoTime()) per-character produced duplicate strings Use single seeded Random(42) instance
TransactionalMessageServiceImplTest#testDeletePrepareMessage_maxSize verify(bridge, timeout(50)) too short for slow CI Increase to timeout(3000)
DefaultMQConsumerWithTraceTest#testPullMessage_WithTrace_Success Async PullMessageService race condition Call pullMessage directly
DefaultMQLitePullConsumerWithTraceTest (2 methods) Instance-level RebalanceService.waitInterval race Set as static field in @Before

Test plan

  • BloomFilterTest: 1000/1000 passed
  • TransactionalMessageServiceImplTest: 1000/1000 passed
  • DefaultMQConsumerWithTraceTest: 1000/1000 passed
  • DefaultMQLitePullConsumerWithTraceTest: 1000/1000 passed

…workflow

Fix root causes of flaky tests quarantined in apache#10374:

- BloomFilterTest#testCheckFalseHit: use single seeded Random instance
  instead of per-character Random(System.nanoTime()) which produced
  duplicate strings in tight loops
- TransactionalMessageServiceImplTest#testDeletePrepareMessage_maxSize:
  increase verify timeout from 50ms to 3000ms to accommodate slow
  thread scheduling
- DefaultMQConsumerWithTraceTest#testPullMessage_WithTrace_Success:
  call pullMessage directly instead of async PullMessageService to
  eliminate race condition
- DefaultMQLitePullConsumerWithTraceTest: set RebalanceService.waitInterval
  as static field in @before to avoid instance-level race condition

Also remove rerun-workflow.yml to stop masking flaky tests with
automatic CI retries.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.88%. Comparing base (9e2d877) to head (44e90bd).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #10379   +/-   ##
==========================================
  Coverage      48.88%   48.88%           
+ Complexity     13450    13446    -4     
==========================================
  Files           1376     1376           
  Lines         100527   100527           
  Branches       12983    12983           
==========================================
+ Hits           49144    49146    +2     
+ Misses         45381    45355   -26     
- Partials        6002     6026   +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@lollipopjin lollipopjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lollipopjin lollipopjin merged commit 41a3a35 into apache:develop May 26, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants